<?php
global $_I18N;
$_I18N = array(
/// 头部 ///
	'top_cart' => array('cn' => '购物车', 'en' => 'Cart'),
	'top_logout' => array('cn' => '退出', 'en' => 'Sign Out'),
/// 表单项 ///
	'form_email' => array('cn' => '邮箱', 'en' => 'Email'),
	'form_nick' => array('cn' => '昵称', 'en' => 'Nick Name'),
	'form_pswd' => array('cn' => '密码', 'en' => 'Password'),
	'form_rptpswd' => array('cn' => '重复密码', 'en' => 'Re-enter Password'),
/// 列表 ///
	'list_sortby' => array('cn' => '排序方式', 'en' => 'Sort By'),
	'list_sortby_latest' => array('cn' => '最新的', 'en' => 'Latest'),
	'list_sortby_topviewed' => array('cn' => '最热的', 'en' => 'Top View'),
	'list_sortby_lowprice' => array('cn' => '最便宜的', 'en' => 'Low Price'),
	'list_sortby_join' => array('cn' => '加入顺序', 'en' => 'Joined Time'),
/// 作品属性 ///
	'work_category' => array('cn' => '类别', 'en' => 'Category'),
	'work_year' => array('cn' => '年份', 'en' => 'Year'),
	'work_size' => array('cn' => '尺寸', 'en' => 'Size'),
	'work_weight' => array('cn' => '重量', 'en' => 'Weight'),
	'work_description' => array('cn' => '详细描述', 'en' => 'Description'),
/// 购买 ///
	'buy_want_quantity' => array('cn' => '我想购买', 'en' => 'I want to buy'),
	'buy_item_title' => array('cn' => '商品名称', 'en' => 'Title'),
	'buy_item_size' => array('cn' => '尺寸', 'en' => 'Size'),
	'buy_item_kuang' => array('cn' => '边框', 'en' => 'Frame'),
	'buy_unit_price' => array('cn' => '单价', 'en' => 'Price'),
	'buy_quantity' => array('cn' => '数量', 'en' => 'Quantity'),
	'buy_sign' => array('cn' => '收件人姓名', 'en' => 'Consignee Name'),
	'buy_address' => array('cn' => '收货地址', 'en' => 'Address'),
	'buy_mobile' => array('cn' => '手机', 'en' => 'Mobile Phone'),
	'buy_phone' => array('cn' => '座机', 'en' => 'Telephone'),
	'buy_email' => array('cn' => '邮箱', 'en' => 'Email'),
	'buy_postcode' => array('cn' => '邮政编码', 'en' => 'Post Code'),
	'buy_delete' => array('cn' => '删除', 'en' => 'Delete'),
	'buy_total_price' => array('cn' => '总价', 'en' => 'Total'),
/// 输入时提示 ///
	'hint_delete_confirm' => array('cn' => '确定要删除吗？', 'en' => 'Sure to delete it?'),
	'hint_buy_soldout' => array('cn' => '抱歉，该商品暂时缺货……', 'en' => 'Sorry, It\'s sold out..'),
	'hint_buy_overquantity' => array('cn' => '抱歉，数量超过该商品的现有库存。', 'en' => 'Sorry, too more to buy.'),
	'hint_buy_wrongquantity' => array('cn' => '抱歉，数量错误。', 'en' => 'Sorry, wrong quantity.'),
/// 提交后出错信息 ///
	'error_done' => array('cn' => '操作成功', 'en' => 'Done'),
);

function i18n($sName) {
	global $_I18N;
	if ('en' == $_SESSION['LANG']) {
		return $_I18N[$sName]['en'];
	}
	else {
		return $_I18N[$sName]['cn'];
	}
}
?>
